/*

    首页

*/

/* 侧边栏样式 */
#my-pop {
  width: 1.615rem;
  margin-top: 0.43rem;
  background-color: #050000;
}


/* 内容区域 */
.my-content {
  /* 轮播图区域 */
  //@media (max-width: 320px) {
  //  .my-banner {
  //    margin-top: -7px;
  //  }
  //}

  .my-banner {
    margin-top: -7px;

    a {
      display: block;
      width: 100%;

      img {
        display: block;
        width: 100%;
      }
    }

    /* 更改轮播点样式 */

    .swiper-pagination-bullet {
      background-color: #fff;
      opacity: 1;

      &.swiper-pagination-bullet-active {
        width: 0.15rem;
        border-radius: 0.1rem;
        background-color: #fff;
      }
    }
  }


}

/* 四个导航*/

.content-nav {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: space-between;

  li {
    flex: 1;

    a {
      display: block;
      width: 100%;
      height: 100%;
      img {
        margin: 0 auto;
        width: 0.39rem;
        height: 0.39rem;
        display: block;
        margin-bottom: 0.13rem;
      }

      div {
        height: 0.13rem;
        text-align: center;
        margin: 0 auto;
        font-size: 0.13rem;
        color: #333333;
      }
    }

    &:nth-of-type(4) {
      a {
        img {
          width: 0.45rem !important;
        }
      }
    }
  }
}

/* 品牌故事*/

.story {
  width: 100%;
  height: 3rem;
  background: url("../img/home/story_bac.png") no-repeat center center;
  background-size: cover;
  padding-top: 0.76rem;
  padding-bottom: 0.29rem;
  border-bottom: 0.05rem solid #eaeaea;

  p {
    font-size: 0.12rem;
    color: #4e4e4e;
    letter-spacing: 0.01em;
    line-height: 0.18rem;


    &:nth-of-type(1),
    &:nth-of-type(2) {
      margin-bottom: 0.25rem;
    }
  }
}

/* 产品展示 */

.product_show {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 0.05rem solid #eaeaea;
  /*标题*/

  .ps-title {
    height: 0.32rem;
    background: url("../img/home/peoduct_show_title.png") no-repeat center center;
    background-size: contain;
    margin-bottom: 0.25rem;
  }

  /* 图片区域 */


  .ps-imgbox-nav {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;

    li {
      flex: 0 0 50%;
      width: 100%;


      a {
        width: 100%;
        height: 2.25rem;
        display: block;
        transition: background 0.5s;
      }
    }

    li {
      &:nth-of-type(1) {
        a {
          background: url("../img/home/ma.png") no-repeat center center;
          background-size: contain;
        }

        &:hover {
          a {
            background: url("../img/home/ma_hover.png") no-repeat center center;
            background-size: contain;
          }
        }
      }

      &:nth-of-type(2) {
        background: url("../img/home/la.png") no-repeat center center;
        background-size: contain;

        &:hover {
          a {
            background: url("../img/home/la_hover.png") no-repeat center center;
            background-size: contain;
          }
        }
      }

      &:nth-of-type(3) {
        background: url("../img/home/xian.png") no-repeat center center;
        background-size: contain;

        &:hover {
          a {
            background: url("../img/home/xian_hover.png") no-repeat center center;
            background-size: contain;
          }
        }
      }

      &:nth-of-type(4) {
        background: url("../img/home/xiang.png") no-repeat center center;
        background-size: contain;

        &:hover {
          a {
            background: url("../img/home/xiang_hover.png") no-repeat center center;
            background-size: contain;
          }
        }
      }
    }
  }
}

/* 项目优势 */

.goodness {
  border-top: 1px solid transparent;
  border-bottom: 0.05rem solid #eaeaea;
  padding-bottom: 0.3rem;
  /* 标题 */

  .goodness-title {
    height: 0.33rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    background: url("../img/home/goodness_title.png") no-repeat center center;
    background-size: contain;
  }

  .goodness-nav {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;

    li {
      flex: 0 0 50%;

      img {
        display: block;
        width: 100%;
      }

      p {
        display: -webkit-box;
        word-break: break-all;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;

        &:nth-of-type(1) {
          font-size: 0.12rem;
          color: #333;
          line-height: 0.15rem;
          margin-bottom: 0.11rem;
        }

        &:nth-of-type(2) {
          width: 1.4rem;
          font-size: 0.1rem;
          color: #333;
          opacity: .7;
          line-height: 0.15rem;
          margin-bottom: 0.12rem;
        }

        &:nth-of-type(3) {
          font-size: 0.12rem;
          color: #333;
          line-height: 0.15rem;
          margin-bottom: 0.11rem;
        }

        &:nth-of-type(4) {
          width: 1.4rem;
          font-size: 0.1rem;
          color: #333;
          opacity: .7;
          line-height: 0.15rem;
        }
      }

      &:nth-of-type(1) {
        //margin-right: 0.35rem;
        margin-bottom: 0.19rem;
      }

      &:nth-of-type(2) {
        padding-left: 0.15rem;
      }

      &:nth-of-type(3) {
        p {
          &:nth-of-type(1),
          &:nth-of-type(3) {
            width: 1.39rem;
            text-align: right;
          }
        }
      }
    }
  }


}

/* 新闻资讯 */

.news {
  border-top: 1px solid transparent;
  /* 标题 */

  .news-title {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    height: 0.32rem;
    background: url("../img/home/news_title.png") no-repeat center center;
    background-size: contain;
  }

  .news-nav {
    //height: 5rem;
    //background-color: pink;

    li {
      height: 0.8rem;
      border-bottom: 1px solid #eaeaea;

      a {
        height: 0.8rem;
        display: block;
        width: 100%;
        //background-color: #93f0ee;
        padding-top: 0.15rem;
        /* 左边 */

        .news-item-left {
          margin-right: 0.15rem;
          width: 0.8rem;
          height: 0.48rem;
          background-color: #ff4c4c;
          border-radius: 0.05rem;
        }

        /* 右边 */

        .news-item-right {

          width: 2.4rem;

          p {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;

            &:nth-of-type(1) {
              font-family: "NotoSansCJK-Black-7";
              font-size: 0.12rem;
              line-height: 1em;
              color: #333;
            }

            &:nth-of-type(2) {
              margin-top: 0.07rem;
              margin-bottom: 0.07rem;
              font-size: 0.09rem;
              line-height: 1em;
              color: #666;
            }
          }

          span {
            font-size: 0.09rem;
            line-height: 1em;
            color: #666;
          }
        }
      }
    }
  }
}
